package com.gao.web.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Customer {
    int id;
    String username;//用户名
    String password;//密码
    String name;//姓名
    String ID_number;//身份证号码
    String birth_date = "";//出生日期
    int sex = 100;//0为女 1为男
    String email;//电子邮箱
    String address;//通信地址
    String phone;//联系电话

    public Customer(String username, String password, String name, int sex, String phone, String email, String address, String birth_date) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.email = email;
        this.address = address;
        this.phone = phone;
        this.birth_date = birth_date;
    }

    public Customer(String username, String password) {
        this.username = username;
        this.password = password;
    }

    public Customer(String username, String password, String phone) {
        this.username = username;
        this.password = password;
        this.phone = phone;
    }

    public Customer(String username, String password, String phone, String birth_date) {
        this.username = username;
        this.password = password;
        this.phone = phone;
        this.birth_date = birth_date;
    }

    public Customer(String username, String password, String name, int sex, String phone, String email, String address) {
        this.username = username;
        this.password = password;
        this.name = name;
        this.sex = sex;
        this.email = email;
        this.address = address;
        this.phone = phone;
    }
}
